package storage;
import common.*;

public class MeMain{
/*	public static void main( String[] args ){
		int n_local_nodes = 5;
		String target_ip = null;
		
		// args handling - args0 specifies # local nodes
		if( args.length == 1 && Utils.isNumber( args[ 0 ] ) ){
			n_local_nodes = Integer.parseInt( args[ 0 ] );
		}else if( args.length == 2 && Utils.isNumber( args[ 0 ] ) ){
			n_local_nodes = Integer.parseInt( args[ 0 ] );
			target_ip = args[ 1 ];
		}else{
			System.out.println( "MeMain: illegal parameters" );
			System.out.println( "usage: java MeMain (#local_nodes) [IP_addr to connect]" );
			System.exit( 0 );			// for submission, uncomment this line
//			n_local_nodes = 5;			// for submission, comment this line
//			target_addr = "localhost";	// for submission, comment this line
		}

		// if args exist, make a connection
		System.out.println( "#args: " + args.length );
		System.out.println( "#nodes: " + n_local_nodes );
		System.out.println( "target: " + target_ip );

		// init a local network
		
		
		// make a connection to 
		if( target_ip != null ){
		//	Connection conn = new Connection( target_ip );
		}
		
		// listen for incoming connections 
		
	}
*/
}
